<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: Color space processing</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Color space processing<div class="ingroups"><a class="el" href="../../d1/d1e/group__cuda.html">CUDA-accelerated Computer Vision</a> &raquo; <a class="el" href="../../d0/d05/group__cudaimgproc.html">Image Processing</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga320de8db3b0d8624e9b92fc6b117b694"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ga320de8db3b0d8624e9b92fc6b117b694">cv::cuda::AlphaCompTypes</a> { <br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a5d7ef7ce41890165b48db13c4b07b800">cv::cuda::ALPHA_OVER</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a715019460703f11c2ad2fce0f699651d">cv::cuda::ALPHA_IN</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a4b058f82e5da6ff6c6fc064b622e939e">cv::cuda::ALPHA_OUT</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a772a10e83016004a48a40abf5303f396">cv::cuda::ALPHA_ATOP</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a5f2df452a2f9ecf4153d8f2ff0cdf18b">cv::cuda::ALPHA_XOR</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694af8c43ced61d1ac7235d1b0a3e37d8127">cv::cuda::ALPHA_PLUS</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a42038364eec729063da1129f91da7ae8">cv::cuda::ALPHA_OVER_PREMUL</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a9c80438eea06fc1e3d1c36dd89afad4a">cv::cuda::ALPHA_IN_PREMUL</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a5e4b7e0bff18cf3d22484caf1e5a57d2">cv::cuda::ALPHA_OUT_PREMUL</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694aa583c173fb8c3c0d97a2b18d7a474d40">cv::cuda::ALPHA_ATOP_PREMUL</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694afba1dd6df9231630810091dba1ba1c9a">cv::cuda::ALPHA_XOR_PREMUL</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a48edec2d9e068d4727c917bbe240c714">cv::cuda::ALPHA_PLUS_PREMUL</a>, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gga320de8db3b0d8624e9b92fc6b117b694a58f446076264b432bd4dbf90eeac74d2">cv::cuda::ALPHA_PREMUL</a>
<br />
 }</td></tr>
<tr class="separator:ga320de8db3b0d8624e9b92fc6b117b694"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa9e40b798350356f45667e609d5d82f9"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gaa9e40b798350356f45667e609d5d82f9">cv::cuda::DemosaicTypes</a> { <br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9addf009a20751e8b5e3f35e0a6e6a6494">cv::cuda::COLOR_BayerBG2BGR_MHT</a> = 256, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9ae7ed117e179385954505a127492a3f71">cv::cuda::COLOR_BayerGB2BGR_MHT</a> = 257, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9a3539d4ab50d2386af8f4033e0a4aca7d">cv::cuda::COLOR_BayerRG2BGR_MHT</a> = 258, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9a370dd60e4d1fe51c51a5a90d250ac8b1">cv::cuda::COLOR_BayerGR2BGR_MHT</a> = 259, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9a954a78abfff350f7df5c9d4924c10bef">cv::cuda::COLOR_BayerBG2RGB_MHT</a> = COLOR_BayerRG2BGR_MHT, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9a0846825de742426ac98e8342496e4f71">cv::cuda::COLOR_BayerGB2RGB_MHT</a> = COLOR_BayerGR2BGR_MHT, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9abd4996d237d3a632990d94db73385f74">cv::cuda::COLOR_BayerRG2RGB_MHT</a> = COLOR_BayerBG2BGR_MHT, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9a344694fbc10ea8ba9c6f18c220d91174">cv::cuda::COLOR_BayerGR2RGB_MHT</a> = COLOR_BayerGB2BGR_MHT, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9aad9130613cf3bbd1c139eed3ce964602">cv::cuda::COLOR_BayerBG2GRAY_MHT</a> = 260, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9a3b7d66377d5b0265d5f0bb5f3ca5b8bc">cv::cuda::COLOR_BayerGB2GRAY_MHT</a> = 261, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9a6e63778d3e4aa13d21aa74a8124e2afb">cv::cuda::COLOR_BayerRG2GRAY_MHT</a> = 262, 
<br />
&#160;&#160;<a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ggaa9e40b798350356f45667e609d5d82f9a401bb8e159ec835ee3dd035a1af473b9">cv::cuda::COLOR_BayerGR2GRAY_MHT</a> = 263
<br />
 }</td></tr>
<tr class="separator:gaa9e40b798350356f45667e609d5d82f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga08a698700458d9311390997b57fbf8dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ga08a698700458d9311390997b57fbf8dc">cv::cuda::alphaComp</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int alpha_op, <a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;stream=<a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>())</td></tr>
<tr class="memdesc:ga08a698700458d9311390997b57fbf8dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Composites two images using alpha opacity values contained in each image.  <a href="../../db/d8c/group__cudaimgproc__color.html#ga08a698700458d9311390997b57fbf8dc">More...</a><br /></td></tr>
<tr class="separator:ga08a698700458d9311390997b57fbf8dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga48d0f208181d5ca370d8ff6b62cbe826"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ga48d0f208181d5ca370d8ff6b62cbe826">cv::cuda::cvtColor</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int code, int dcn=0, <a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;stream=<a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>())</td></tr>
<tr class="memdesc:ga48d0f208181d5ca370d8ff6b62cbe826"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an image from one color space to another.  <a href="../../db/d8c/group__cudaimgproc__color.html#ga48d0f208181d5ca370d8ff6b62cbe826">More...</a><br /></td></tr>
<tr class="separator:ga48d0f208181d5ca370d8ff6b62cbe826"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7fb153572b573ebd2d7610fcbe64166e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ga7fb153572b573ebd2d7610fcbe64166e">cv::cuda::demosaicing</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int code, int dcn=-1, <a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;stream=<a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>())</td></tr>
<tr class="memdesc:ga7fb153572b573ebd2d7610fcbe64166e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an image from Bayer pattern to RGB or grayscale.  <a href="../../db/d8c/group__cudaimgproc__color.html#ga7fb153572b573ebd2d7610fcbe64166e">More...</a><br /></td></tr>
<tr class="separator:ga7fb153572b573ebd2d7610fcbe64166e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf4195a8409c3b8fbfa37295c2b2c4729"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gaf4195a8409c3b8fbfa37295c2b2c4729">cv::cuda::gammaCorrection</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, bool forward=true, <a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;stream=<a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>())</td></tr>
<tr class="memdesc:gaf4195a8409c3b8fbfa37295c2b2c4729"><td class="mdescLeft">&#160;</td><td class="mdescRight">Routines for correcting image color gamma.  <a href="../../db/d8c/group__cudaimgproc__color.html#gaf4195a8409c3b8fbfa37295c2b2c4729">More...</a><br /></td></tr>
<tr class="separator:gaf4195a8409c3b8fbfa37295c2b2c4729"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga75a29cc4a97cde0d43ea066b01de927e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ga75a29cc4a97cde0d43ea066b01de927e">cv::cuda::swapChannels</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> image, const int dstOrder[4], <a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;stream=<a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>())</td></tr>
<tr class="memdesc:ga75a29cc4a97cde0d43ea066b01de927e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Exchanges the color channels of an image in-place.  <a href="../../db/d8c/group__cudaimgproc__color.html#ga75a29cc4a97cde0d43ea066b01de927e">More...</a><br /></td></tr>
<tr class="separator:ga75a29cc4a97cde0d43ea066b01de927e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga320de8db3b0d8624e9b92fc6b117b694"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga320de8db3b0d8624e9b92fc6b117b694">&#9670;&nbsp;</a></span>AlphaCompTypes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ga320de8db3b0d8624e9b92fc6b117b694">cv::cuda::AlphaCompTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../de/de4/cudaimgproc_8hpp.html">opencv2/cudaimgproc.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a5d7ef7ce41890165b48db13c4b07b800"></a>ALPHA_OVER&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a715019460703f11c2ad2fce0f699651d"></a>ALPHA_IN&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a4b058f82e5da6ff6c6fc064b622e939e"></a>ALPHA_OUT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a772a10e83016004a48a40abf5303f396"></a>ALPHA_ATOP&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a5f2df452a2f9ecf4153d8f2ff0cdf18b"></a>ALPHA_XOR&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694af8c43ced61d1ac7235d1b0a3e37d8127"></a>ALPHA_PLUS&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a42038364eec729063da1129f91da7ae8"></a>ALPHA_OVER_PREMUL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a9c80438eea06fc1e3d1c36dd89afad4a"></a>ALPHA_IN_PREMUL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a5e4b7e0bff18cf3d22484caf1e5a57d2"></a>ALPHA_OUT_PREMUL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694aa583c173fb8c3c0d97a2b18d7a474d40"></a>ALPHA_ATOP_PREMUL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694afba1dd6df9231630810091dba1ba1c9a"></a>ALPHA_XOR_PREMUL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a48edec2d9e068d4727c917bbe240c714"></a>ALPHA_PLUS_PREMUL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga320de8db3b0d8624e9b92fc6b117b694a58f446076264b432bd4dbf90eeac74d2"></a>ALPHA_PREMUL&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<a id="gaa9e40b798350356f45667e609d5d82f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa9e40b798350356f45667e609d5d82f9">&#9670;&nbsp;</a></span>DemosaicTypes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/d8c/group__cudaimgproc__color.html#gaa9e40b798350356f45667e609d5d82f9">cv::cuda::DemosaicTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../de/de4/cudaimgproc_8hpp.html">opencv2/cudaimgproc.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9addf009a20751e8b5e3f35e0a6e6a6494"></a>COLOR_BayerBG2BGR_MHT&#160;</td><td class="fielddoc"><p>Bayer Demosaicing (Malvar, He, and Cutler) </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9ae7ed117e179385954505a127492a3f71"></a>COLOR_BayerGB2BGR_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9a3539d4ab50d2386af8f4033e0a4aca7d"></a>COLOR_BayerRG2BGR_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9a370dd60e4d1fe51c51a5a90d250ac8b1"></a>COLOR_BayerGR2BGR_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9a954a78abfff350f7df5c9d4924c10bef"></a>COLOR_BayerBG2RGB_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9a0846825de742426ac98e8342496e4f71"></a>COLOR_BayerGB2RGB_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9abd4996d237d3a632990d94db73385f74"></a>COLOR_BayerRG2RGB_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9a344694fbc10ea8ba9c6f18c220d91174"></a>COLOR_BayerGR2RGB_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9aad9130613cf3bbd1c139eed3ce964602"></a>COLOR_BayerBG2GRAY_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9a3b7d66377d5b0265d5f0bb5f3ca5b8bc"></a>COLOR_BayerGB2GRAY_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9a6e63778d3e4aa13d21aa74a8124e2afb"></a>COLOR_BayerRG2GRAY_MHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaa9e40b798350356f45667e609d5d82f9a401bb8e159ec835ee3dd035a1af473b9"></a>COLOR_BayerGR2GRAY_MHT&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga08a698700458d9311390997b57fbf8dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga08a698700458d9311390997b57fbf8dc">&#9670;&nbsp;</a></span>alphaComp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::alphaComp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>img1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>img2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>alpha_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em> = <code><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../de/de4/cudaimgproc_8hpp.html">opencv2/cudaimgproc.hpp</a>&gt;</code></p>

<p>Composites two images using alpha opacity values contained in each image. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img1</td><td>First image. Supports CV_8UC4 , CV_16UC4 , CV_32SC4 and CV_32FC4 types. </td></tr>
    <tr><td class="paramname">img2</td><td>Second image. Must have the same size and the same type as img1 . </td></tr>
    <tr><td class="paramname">dst</td><td>Destination image. </td></tr>
    <tr><td class="paramname">alpha_op</td><td>Flag specifying the alpha-blending operation:<ul>
<li><b>ALPHA_OVER</b></li>
<li><b>ALPHA_IN</b></li>
<li><b>ALPHA_OUT</b></li>
<li><b>ALPHA_ATOP</b></li>
<li><b>ALPHA_XOR</b></li>
<li><b>ALPHA_PLUS</b></li>
<li><b>ALPHA_OVER_PREMUL</b></li>
<li><b>ALPHA_IN_PREMUL</b></li>
<li><b>ALPHA_OUT_PREMUL</b></li>
<li><b>ALPHA_ATOP_PREMUL</b></li>
<li><b>ALPHA_XOR_PREMUL</b></li>
<li><b>ALPHA_PLUS_PREMUL</b></li>
<li><b>ALPHA_PREMUL</b> </li>
</ul>
</td></tr>
    <tr><td class="paramname">stream</td><td><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html" title="This class encapsulates a queue of asynchronous calls. ">Stream</a> for the asynchronous version.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd><ul>
<li>An example demonstrating the use of alphaComp can be found at opencv_source_code/samples/gpu/alpha_comp.cpp </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ga48d0f208181d5ca370d8ff6b62cbe826"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga48d0f208181d5ca370d8ff6b62cbe826">&#9670;&nbsp;</a></span>cvtColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::cvtColor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dcn</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em> = <code><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../de/de4/cudaimgproc_8hpp.html">opencv2/cudaimgproc.hpp</a>&gt;</code></p>

<p>Converts an image from one color space to another. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image with CV_8U , CV_16U , or CV_32F depth and 1, 3, or 4 channels. </td></tr>
    <tr><td class="paramname">dst</td><td>Destination image. </td></tr>
    <tr><td class="paramname">code</td><td>Color space conversion code. For details, see cvtColor . </td></tr>
    <tr><td class="paramname">dcn</td><td>Number of channels in the destination image. If the parameter is 0, the number of the channels is derived automatically from src and the code . </td></tr>
    <tr><td class="paramname">stream</td><td><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html" title="This class encapsulates a queue of asynchronous calls. ">Stream</a> for the asynchronous version.</td></tr>
  </table>
  </dd>
</dl>
<p>3-channel color spaces (like HSV, XYZ, and so on) can be stored in a 4-channel image for better performance.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ga48d0f208181d5ca370d8ff6b62cbe826" title="Converts an image from one color space to another. ">cvtColor</a> </dd></dl>

</div>
</div>
<a id="ga7fb153572b573ebd2d7610fcbe64166e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7fb153572b573ebd2d7610fcbe64166e">&#9670;&nbsp;</a></span>demosaicing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::demosaicing </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dcn</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em> = <code><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../de/de4/cudaimgproc_8hpp.html">opencv2/cudaimgproc.hpp</a>&gt;</code></p>

<p>Converts an image from Bayer pattern to RGB or grayscale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image (8-bit or 16-bit single channel). </td></tr>
    <tr><td class="paramname">dst</td><td>Destination image. </td></tr>
    <tr><td class="paramname">code</td><td>Color space conversion code (see the description below). </td></tr>
    <tr><td class="paramname">dcn</td><td>Number of channels in the destination image. If the parameter is 0, the number of the channels is derived automatically from src and the code . </td></tr>
    <tr><td class="paramname">stream</td><td><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html" title="This class encapsulates a queue of asynchronous calls. ">Stream</a> for the asynchronous version.</td></tr>
  </table>
  </dd>
</dl>
<p>The function can do the following transformations:</p>
<ul>
<li><p class="startli">Demosaicing using bilinear interpolation</p>
<p class="startli">&gt; - COLOR_BayerBG2GRAY , COLOR_BayerGB2GRAY , COLOR_BayerRG2GRAY , COLOR_BayerGR2GRAY &gt; - COLOR_BayerBG2BGR , COLOR_BayerGB2BGR , COLOR_BayerRG2BGR , COLOR_BayerGR2BGR</p>
</li>
<li><p class="startli">Demosaicing using Malvar-He-Cutler algorithm (<a class="el" href="../../d0/de3/citelist.html#CITEREF_MHT2011">[91]</a>)</p>
<p class="startli">&gt; - COLOR_BayerBG2GRAY_MHT , COLOR_BayerGB2GRAY_MHT , COLOR_BayerRG2GRAY_MHT , &gt; COLOR_BayerGR2GRAY_MHT &gt; - COLOR_BayerBG2BGR_MHT , COLOR_BayerGB2BGR_MHT , COLOR_BayerRG2BGR_MHT , &gt; COLOR_BayerGR2BGR_MHT</p>
</li>
</ul>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../db/d8c/group__cudaimgproc__color.html#ga48d0f208181d5ca370d8ff6b62cbe826" title="Converts an image from one color space to another. ">cvtColor</a> </dd></dl>

</div>
</div>
<a id="gaf4195a8409c3b8fbfa37295c2b2c4729"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf4195a8409c3b8fbfa37295c2b2c4729">&#9670;&nbsp;</a></span>gammaCorrection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::gammaCorrection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>forward</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em> = <code><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../de/de4/cudaimgproc_8hpp.html">opencv2/cudaimgproc.hpp</a>&gt;</code></p>

<p>Routines for correcting image color gamma. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image (3- or 4-channel 8 bit). </td></tr>
    <tr><td class="paramname">dst</td><td>Destination image. </td></tr>
    <tr><td class="paramname">forward</td><td>true for forward gamma correction or false for inverse gamma correction. </td></tr>
    <tr><td class="paramname">stream</td><td><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html" title="This class encapsulates a queue of asynchronous calls. ">Stream</a> for the asynchronous version. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga75a29cc4a97cde0d43ea066b01de927e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga75a29cc4a97cde0d43ea066b01de927e">&#9670;&nbsp;</a></span>swapChannels()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::swapChannels </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a>&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>dstOrder</em>[4], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em> = <code><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../de/de4/cudaimgproc_8hpp.html">opencv2/cudaimgproc.hpp</a>&gt;</code></p>

<p>Exchanges the color channels of an image in-place. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>Source image. Supports only CV_8UC4 type. </td></tr>
    <tr><td class="paramname">dstOrder</td><td>Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [3,2,1,0] converts this to ABGR channel order. </td></tr>
    <tr><td class="paramname">stream</td><td><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html" title="This class encapsulates a queue of asynchronous calls. ">Stream</a> for the asynchronous version.</td></tr>
  </table>
  </dd>
</dl>
<p>The methods support arbitrary permutations of the original channels, including replication. </p>

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:41 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
